.ruleController {
  padding: 32px;

  &__condition {
    position: relative;

    .ruleController__condition--active {
      padding-left: 80px;

      .condition__box--line {
        width: 80px;
        height: 1px;
        display: inline-block;
        background-color: #d0d0d0;
        position: absolute;
        top: 50%;
        left: -80px;

        &.disabled {
          background-color: #ebecf0;
        }
      }
    }
    .condition {
      &__box {
        position: absolute;
        border: 1px solid #d0d0d0;

        &.disabled {
          border-color: #ebecf0;
        }

        &--radio {
          cursor: pointer;
          display: flex;
          position: absolute;
          left: -30px;
          top: 50%;
          margin-top: -13px;
          font-size: 12px;
          z-index: 99;

          &.disabled {
            cursor: not-allowed;
            color: #3d446e;
            background: #ebecf0;
          }
        }

        &--name {
          cursor: pointer;
          position: absolute;
          left: -14px;
          top: 50%;
          margin-top: -13px;
          background: #ddebff;
          width: 27px;
          height: 27px;
          border-radius: 50%;
          font-size: 12px;
          color: #008ee0;
          text-align: center;
          line-height: 26px;
          z-index: 1;

          &.disabled {
            cursor: not-allowed;
            color: #3d446e;
            background: #ebecf0;
          }
        }
      }
      &__add {
        display: flex;
        height: 32px;

        &--line {
          display: block;
          width: 50px;
          height: 1px;
          background-color: #d0d0d0;
          margin-top: 16px;
        }
        &--icon {
          cursor: pointer;
          color: #008ee0;
          font-size: 14px;
          margin: 7px 0 0 4px;

          &--disabled {
            cursor: not-allowed;
            color: #b1b4c5;
          }
        }
      }
    }
  }
  &__item {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    margin-bottom: 16px;

    &--line {
      width: 50px;
      height: 1px;
      background: #d0d0d0;
      display: block;

      &.disabled {
        background-color: #ebecf0;
      }
    }

    &--component {
      flex: 1;
    }
    &--operation {
      width: 10%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-left: 12px;
      margin-top: 7px;
      min-width: 55px;

      .icon {
        cursor: pointer;
        color: #008ee0;
        font-size: 18px;
        &:first-child {
          margin-right: 8px;
        }
      }
    }
  }
  .ant-form-item {
    margin-bottom: 0;

    .ant-form-item-explain .ant-form-item-explain-error {
      position: absolute;
    }
  }
}
